﻿using HarmonyLib;
using JSONClass;
using KBEngine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using static UnityEngine.UI.Image;

namespace ncs.lingtian
{
    public partial class LingTianMod
    {

        /// <summary>
        /// 炼器加速
        /// </summary>
        [HarmonyPostfix, HarmonyPatch(typeof(LianQiResultManager), nameof(LianQiResultManager.getCostTime))]
        public static void LianQiResultManager_getCostTime_Postfix(LianQiResultManager __instance, ref int __result)
        {
            var temp = __result;
            var costTime = __result / MainMod.lianqiCostTime.Value;
            costTime = costTime > 0 ? costTime : 1;
            __result = costTime;

            Info($"LianQiResultManager_getCostTime_Postfix {temp} -> {costTime}");

        }

    }
}
